package utils

import (
	"encoding/json"
	"log"
)

func Print2Json(cfg interface{}){
	data, err := json.MarshalIndent(cfg,"","")
	if err !=nil{
		log.Printf("无法格式化json ：%v" ,err)
		return
	}
	log.Printf("====: \n%s",data)
}